import base from './base'
import axios from '../utils/Axios'

export function getTouristInfo(id) {
  return axios.get(`${base.getTouristInfo}/${id}`)
}

export function getTouristArticle(params) {
  return axios.get(
    `${base.getTouristArticle}/${params.beg}/${params.end}/${params.index}/${params.id}`
  )
}

export function searchTouristArticle(params) {
  return axios.get(`${base.searchTouristArticle}/${params.value}/${params.id}`)
}

export function getTouristAchievement(params) {
  return axios.get(
    `${base.getTouristAchievement}/${params.beg}/${params.end}/${params.index}/${params.id}`
  )
}

export function searchTouristAchievement(params) {
  return axios.get(`${base.searchTouristAchievement}/${params.value}/${params.id}`)
}

export function getTouristResource(params) {
  return axios.get(
    `${base.getTouristResource}/${params.beg}/${params.end}/${params.index}/${params.id}`
  )
}

export function searchTouristResource(params) {
  return axios.get(`${base.searchTouristResource}/${params.value}/${params.id}`)
}
